.class public Lcom/example/m6wmr/AddLianXiRenActivity$MyLocationListener;
.super Ljava/lang/Object;
.source "AddLianXiRenActivity.java"

# interfaces
.implements Lcom/baidu/location/BDLocationListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/example/m6wmr/AddLianXiRenActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "MyLocationListener"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/AddLianXiRenActivity;


# direct methods
.method public constructor <init>(Lcom/example/m6wmr/AddLianXiRenActivity;)V
    .locals 0

    .prologue
    .line 449
    iput-object p1, p0, Lcom/example/m6wmr/AddLianXiRenActivity$MyLocationListener;->this$0:Lcom/example/m6wmr/AddLianXiRenActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceiveLocation(Lcom/baidu/location/BDLocation;)V
    .locals 6
    .param p1, "location"    # Lcom/baidu/location/BDLocation;

    .prologue
    const/16 v5, 0x6f

    .line 454
    new-instance v1, Ljava/lang/StringBuffer;

    const/16 v2, 0x100

    invoke-direct {v1, v2}, Ljava/lang/StringBuffer;-><init>(I)V

    .line 457
    .local v1, "sb":Ljava/lang/StringBuffer;
    invoke-virtual {p1}, Lcom/baidu/location/BDLocation;->getLocType()I

    move-result v2

    const/16 v3, 0xa1

    if-eq v2, v3, :cond_0

    invoke-virtual {p1}, Lcom/baidu/location/BDLocation;->getLocType()I

    move-result v2

    const/16 v3, 0x3d

    if-eq v2, v3, :cond_0

    .line 458
    invoke-virtual {p1}, Lcom/baidu/location/BDLocation;->getLocType()I

    move-result v2

    const/16 v3, 0x41

    if-ne v2, v3, :cond_1

    .line 459
    :cond_0
    iget-object v2, p0, Lcom/example/m6wmr/AddLianXiRenActivity$MyLocationListener;->this$0:Lcom/example/m6wmr/AddLianXiRenActivity;

    iget-object v2, v2, Lcom/example/m6wmr/AddLianXiRenActivity;->m:Lmyapp/MyApp;

    invoke-virtual {p1}, Lcom/baidu/location/BDLocation;->getLatitude()D

    move-result-wide v3

    invoke-static {v3, v4}, Ljava/lang/String;->valueOf(D)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lmyapp/MyApp;->setLat(Ljava/lang/String;)V

    .line 460
    iget-object v2, p0, Lcom/example/m6wmr/AddLianXiRenActivity$MyLocationListener;->this$0:Lcom/example/m6wmr/AddLianXiRenActivity;

    iget-object v2, v2, Lcom/example/m6wmr/AddLianXiRenActivity;->m:Lmyapp/MyApp;

    invoke-virtual {p1}, Lcom/baidu/location/BDLocation;->getLongitude()D

    move-result-wide v3

    invoke-static {v3, v4}, Ljava/lang/String;->valueOf(D)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lmyapp/MyApp;->setLng(Ljava/lang/String;)V

    .line 461
    iget-object v2, p0, Lcom/example/m6wmr/AddLianXiRenActivity$MyLocationListener;->this$0:Lcom/example/m6wmr/AddLianXiRenActivity;

    iget-object v2, v2, Lcom/example/m6wmr/AddLianXiRenActivity;->m:Lmyapp/MyApp;

    invoke-virtual {p1}, Lcom/baidu/location/BDLocation;->getAddrStr()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lmyapp/MyApp;->setMapname(Ljava/lang/String;)V

    .line 462
    iget-object v2, p0, Lcom/example/m6wmr/AddLianXiRenActivity$MyLocationListener;->this$0:Lcom/example/m6wmr/AddLianXiRenActivity;

    iget-object v2, v2, Lcom/example/m6wmr/AddLianXiRenActivity;->m:Lmyapp/MyApp;

    const/4 v3, 0x1

    invoke-virtual {v2, v3}, Lmyapp/MyApp;->setIsmap(Z)V

    .line 465
    const-string v2, "Marinactivity"

    const-string v3, "Location:success"

    invoke-static {v2, v3}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 466
    new-instance v0, Landroid/os/Message;

    invoke-direct {v0}, Landroid/os/Message;-><init>()V

    .line 467
    .local v0, "msg":Landroid/os/Message;
    iput v5, v0, Landroid/os/Message;->arg1:I

    .line 468
    sget-object v2, Lcom/example/m6wmr/MainActivity;->h:Landroid/os/Handler;

    invoke-virtual {v2, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 477
    :goto_0
    return-void

    .line 471
    .end local v0    # "msg":Landroid/os/Message;
    :cond_1
    iget-object v2, p0, Lcom/example/m6wmr/AddLianXiRenActivity$MyLocationListener;->this$0:Lcom/example/m6wmr/AddLianXiRenActivity;

    iget-object v2, v2, Lcom/example/m6wmr/AddLianXiRenActivity;->m:Lmyapp/MyApp;

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Lmyapp/MyApp;->setIsmap(Z)V

    .line 472
    const-string v2, "Marinactivity"

    const-string v3, "Location:flase"

    invoke-static {v2, v3}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 473
    new-instance v0, Landroid/os/Message;

    invoke-direct {v0}, Landroid/os/Message;-><init>()V

    .line 474
    .restart local v0    # "msg":Landroid/os/Message;
    iput v5, v0, Landroid/os/Message;->arg1:I

    .line 475
    sget-object v2, Lcom/example/m6wmr/MainActivity;->h:Landroid/os/Handler;

    invoke-virtual {v2, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0
.end method
